#{extends 'common/base.html' /}
<!-- content start -->
<script>
	$(function() {
		$('#useClick').datepicker().on('changeDate.datepicker.amui',
				function(event) {
					$('#useDateStr').text($('#useClick').data('date'));
					$(this).datepicker('close');
				});
		$("#search_sub").click(function(){
			$("#date").val($("#useDateStr").html());
			$("#myform").submit();
		})
	});
</script>
<div class="admin-content">
	<div class="am-cf am-padding">
		<div class="am-fl am-cf">
			<strong class="am-text-primary am-text-lg">回收记录</strong> / <small>recoveryRecord</small>
		</div>
	</div>

	<form class="am-form" id="myform" action="index" method="post">
		<div class="am-g">
			<div class="am-u-sm-12 am-u-md-3" style="width: 50%;">
				<div class="am-form-group">
			#{if type=='2'}
					
					&nbsp;&nbsp;&nbsp;操作员： <select data-am-selected="#{if useList.conditions.oid!=null}
																	{maxHeight: 400,searchBox:'${useList?.conditions?.oid}'}
																	  #{/if}
																	  #{else}
																	  {maxHeight: 400,searchBox:1}
																	  #{/else}
																	  " 
						name="operator_id" data-placeholder="选择产品类别" tabindex="10">
						<option value="">---请选择---</option>
						#{if opList!=null} 
						#{list items:opList.data,as:'bean'} 
						#{if bean?.operator_id != useList.conditions.oid}
						<option value="${bean?.operator_id}">${bean?.real_name}</option>
						#{/if}
						#{else}
						<option value="${bean?.operator_id}" selected>${bean?.real_name}</option>
						
						#{/else}
						#{/list} 
						
						#{/if}
					</select> &nbsp;&nbsp;&nbsp;
			#{/if}
					<button type="button" class="am-btn am-btn-default am-margin-right"
						id="useClick">回收日期</button>
					<span id="useDateStr">${useList.conditions.date}</span> <input hidden
						name="date" id="date"> &nbsp;&nbsp;&nbsp;
					<button class="am-btn am-btn-default" id="search_sub" type="button">搜索</button>
				</div>
			</div>
		</div>

	<div class="am-g">
		<div class="am-u-sm-12">
			<table class="am-table am-table-striped am-table-hover table-main">
				<thead>
					<tr>
						<th class="table-check"><input type="checkbox" /></th>
						<th class="table-id">id</th>
						<th class="table-title">刀具规格</th>
						<th class="table-type">领用数量</th>
						<th class="table-author am-hide-sm-only">领用人</th>
						<th class="table-date am-hide-sm-only">领用时间</th>
					</tr>
				</thead>
				<tbody>
					#{if useList!=null} #{set count:1/} #{list
					items:useList.page,as:'bean'}
					<tr>
						<td><input type="checkbox" /></td>
						<td>${bean?.material_id}</td>
						<td>${bean?.cutter_specs}</td>
						<td>${bean?.num}</td>
						<td class="am-hide-sm-only">${bean?.real_name}</td>
						<td class="am-hide-sm-only">#{formatMsecDate msec:bean.time/}</td>
					</tr>
					#{/list} #{/if}
				</tbody>
			</table>
		</div>
			#{page currPage:useList.currPage,pageSize:useList.pageSize,totalCount:useList.totalCount}operator_id=${useList.conditions.oid}&date=${useList.conditions.date}#{/page}
	</div>
	</form>
</div>
<!-- content end -->